package com.cherry.baselibrary.ext

import android.view.View

/**
 * @author 董棉生(dongmiansheng@parkingwang.com)
 * @since 2018/12/22
 */

fun View.setVisibility(isVisibility:Boolean){
    this.visibility = (if (isVisibility) View.VISIBLE else View.INVISIBLE)
}

fun View.setGone(isGone:Boolean){
    this.visibility = (if (isGone) View.GONE else View.VISIBLE)
}